package com.zuqiuzhandui.liveing.net;

import com.zuqiuzhandui.liveing.model.WXResultModel.GetAccessTokenWXResM;
import com.zuqiuzhandui.liveing.model.WXResultModel.UserInfoWXResM;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by yq on 2016-10-11.
 */

public interface WxApi {
    @GET("sns/oauth2/access_token")
    Observable<GetAccessTokenWXResM> getAccessToken(@Query("appid") String appid,@Query("secret") String secret,@Query("code") String code,@Query("grant_type") String grantType);

    @GET("sns/userinfo")
    Observable<UserInfoWXResM> getUserInfo(@Query("access_token") String access_token,@Query("openid") String openid);

}
